<?php 
namespace app\admin\model;
use think\Model;
class Role extends Model{
    public function setNameAttr($value){
        return trim($value);
    }
    
}